from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
_magic_number = 2
_modified_time = 1187671717.3177841
_template_filename='/home/dcrowdy/src/working/svn/arkaiv/templates/addform.mak'
_template_uri='/addform.mak'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding=None
_exports = []


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/autohandler', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack.push_frame()
    try:
        __M_locals = dict(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        # SOURCE LINE 1
        context.write(u' \n<h1 class="main">Add media</h1>\n\nThe page where data gets added.\n\n')
        # SOURCE LINE 6
        context.write(unicode( h.form(h.url(action='addmedia'), multipart=True) ))
        context.write(u' \n<table>\n<tr>\n<td>Upload file:</td>\n<td>')
        # SOURCE LINE 10
        context.write(unicode( h.file_field('myfile') ))
        context.write(u' </td>\n</tr>\n<tr>\n<td>File description:</td>\n<td>')
        # SOURCE LINE 14
        context.write(unicode( h.text_field('itemname') ))
        context.write(u'</td>\n</tr>\n')
        # SOURCE LINE 16
        context.write(unicode( h.form(h.url(action='addheadinfo'), multipart=True) ))
        context.write(u'\n<tr>\n<td>Head id:</td>\n<td>')
        # SOURCE LINE 19
        context.write(unicode( h.text_field('headid') ))
        context.write(u'</td>\n</tr>\n<tr>\n<td>Head title:</td>\n<td>')
        # SOURCE LINE 23
        context.write(unicode( h.text_field('headtitle') ))
        context.write(u'</td>\n</tr>\n<tr>\n<td>Collection:</td>\n<td>')
        # SOURCE LINE 27
        context.write(unicode( h.select("collection", c.collectioninfo)))
        context.write(u'\n</table>\n')
        # SOURCE LINE 29
        context.write(unicode( h.hidden_field('itemid') ))
        context.write(u'\n\n')
        # SOURCE LINE 31
        context.write(unicode( h.submit('Submit') ))
        context.write(u' \n')
        # SOURCE LINE 32
        context.write(unicode( h.end_form() ))
        context.write(u' \n\n')
        return ''
    finally:
        context.caller_stack.pop_frame()


